package pub.guoxin.oops.common.sms.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

import static pub.guoxin.oops.common.sms.enums.SmsTemplateType.CAPTCHA;
import static pub.guoxin.oops.common.sms.enums.SmsTemplateType.NOTIFICATION;

/**
 * Created by guoxin on 18-3-13.
 */
@AllArgsConstructor
@Getter
@ToString
public enum SmsTemplate {

    SMS_CAPTCHA                 ("SMS_127161269", CAPTCHA,      "短信验证码",              "您的验证码为：${code}，该验证码5分钟内有效，请勿泄露于他人。"),
    COMMUNICATION_BATTERY_LEVEL ("SMS_133967714", NOTIFICATION, "通讯模块电量告警_fix",     "通讯模块串号为${sn}的剩余电池电量为${value}请及时更换电池！"),
    DEVICE_BATTERY_LEVEL        ("SMS_133972671", NOTIFICATION, "仪表电量告警_fix",         "燃气表串号为${sn}的剩余电池电量为${value}请及时更换电池！"),
    DEVICE_NORM_MOMENT_FLOW     ("SMS_133967715", NOTIFICATION, "标况瞬时流量告警_fix",     "仪表串号为${sn}的标况瞬时流量为${value}以达到预警界值请及时检查！"),
    DEVICE_WORK_MOMENT_FLOW     ("SMS_133962588", NOTIFICATION, "仪表工况瞬时流量告警_fix",  "仪表串号为${sn}的工况瞬时流量为${value}以达到预警界值请及时检查！"),
    DEVICE_WORK_PRESSURE        ("SMS_133962589", NOTIFICATION, "仪表工况压力告警_fix",     "仪表串号为${sn}的工况压力为${value}以达到预警界值请及时检查！"),
    DEVICE_WORK_TEMPERATURE     ("SMS_133962590", NOTIFICATION, "仪表工况温度告警_fix",     "仪表串号为${sn}的工况温度为${value}以达到预警界值请及时检查！"),
    ;

    /**
     * 模板Code
     */
    private String code;
    /**
     * 模板类型
     */
    private SmsTemplateType type;
    /**
     * 模板名称
     */
    private String name;
    /**
     * 内容
     */
    private String content;

}
